package com.shop.admin.vo.paper;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shop.common.entity.QuestionOption;
import com.shop.common.typeHandler.QuestionOptionsTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel("试卷试题Vo")
@TableName(autoResultMap = true)
public class PaperQuestionVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "试题ID")
    private Integer id;

    @ApiModelProperty(value = "分值")
    private Integer score;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "题干")
    private String title;

    @ApiModelProperty(value = "选项")
    @TableField(typeHandler = QuestionOptionsTypeHandler.class)
    private List<QuestionOption> options;

    @ApiModelProperty(value = "解释")
    private String explanation;

    @ApiModelProperty(value = "关键词")
    private String keywords;
}
